//
//  CCMConst.swift
//  CCMoney_swift
//
//  Created by JKHuang on 2018/11/23.
//  Copyright © 2018 JKHuang. All rights reserved.
//
import UIKit

/*================= 请求 =================*/

let CCMServerDomain = ""

/*================= UI =================*/

let iphoneX = UIScreen.main.currentMode!.size.equalTo(CGSize(width: 1125, height: 2436))
let iphoneXr = UIScreen.main.currentMode!.size.equalTo(CGSize(width: 828, height: 1792))
let iphoneXs = UIScreen.main.currentMode!.size.equalTo(CGSize(width: 1125, height: 2436))
let iphoneXs_M = UIScreen.main.currentMode!.size.equalTo(CGSize(width: 1242, height: 2688))

let ScreenWidth = UIScreen.main.bounds.width
let ScreenHeight = UIScreen.main.bounds.height

/// 相对iPhone6宽比
let WidthScale = ScreenWidth / 375
/// 相对iPhone6高比
let HeightScale = ScreenHeight / 667
let kStatusBarHeight: CGFloat = iphoneX || iphoneXr || iphoneXs || iphoneXs_M ? 44.0 : 20.0
let kTabBarHeight: CGFloat = iphoneX || iphoneXr || iphoneXs || iphoneXs_M ? 83.0 : 49.0
let kHomeIndicatorHeight: CGFloat = iphoneX || iphoneXr || iphoneXs || iphoneXs_M ? 34.0 : 0
let kNavigationHeight: CGFloat = iphoneX || iphoneXr || iphoneXs || iphoneXs_M ? 88.0 : 64.0

/// 默认图片高宽比 9:16
let ImageRatio: CGFloat = 0.5625

/*================= 颜色 =================*/

let MainColor:UIColor = UIColor.hex(0x161C3D);

/*================= Data =================*/
let CCMTokenKey = "token"
let CCMDataKey = "data"
let CCMessagekey = "message"
let CCMStatusKey = "state"
let CCMStatusError = 555


/*================= 通知相关 =================*/

/// 跳转登录通知name
let CCMJump2Login = Notification.Name("Jump2Login")
